package com.atguigu.eduservice.mapper;

import com.alibaba.fastjson.JSON;
import com.atguigu.eduservice.entity.EduCourse;
import com.atguigu.eduservice.entity.chapter.ChapterVo;
import com.atguigu.eduservice.entity.vo.CoursePublishVo;
import com.atguigu.eduservice.entity.vo.CourseWebVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.junit.Test;

import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author huangqicai
 * @since 2022-10-21
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {

    /*根据课程id查询课程的最终发布信息*/
    CoursePublishVo getPublishCourseInfo(String courseId);

    /*根据课程的id查询课程的详细信息*/
    CourseWebVo selectCourseVo(String courseId);

    /*根据课程id查询课程里面的章节信息-章节里面的小节信息*/
    List<ChapterVo> selectChapterVideos(String courseId);

}
